#ifndef KDMPRIMARYGENERATORACTION
#define KDMPRIMARYGENERATORACTION

#include <G4VUserPrimaryGeneratorAction.hh>
#include <G4HEPEvtInterface.hh>
#include "CLHEP/Random/MTwistEngine.h"
#include <G4ParticleGun.hh>

class KDMPrimaryGeneratorAction: public G4VUserPrimaryGeneratorAction {
public:
	KDMPrimaryGeneratorAction(int photonCount);
	~KDMPrimaryGeneratorAction();

	void GeneratePrimaries(G4Event*);

private:
	int numOfPhotons;
	G4ParticleGun* rayGun;
	CLHEP::MTwistEngine* randEngine;
};

#endif
